package com.sdy.hospitalguard.embed.keepalive.pojo.netty;

import io.netty.channel.ChannelHandlerContext;

public class FastGateChannelHandlerContext {

    public FastGateChannelHandlerContext(ChannelHandlerContext ctx, int isBound) {
        this.ctx = ctx;
        this.isBound = isBound;
    }

    private ChannelHandlerContext ctx;

    private String deviceCode;

    private Boolean isLock = false;

    // 0 = 未绑定， 1绑定
    private int isBound = 0;

    public ChannelHandlerContext getCtx() {
        return ctx;
    }

    public void setCtx(ChannelHandlerContext ctx) {
        this.ctx = ctx;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public Boolean getLock() {
        return isLock;
    }

    public void setLock(Boolean lock) {
        isLock = lock;
    }

    public int getIsBound() {
        return isBound;
    }

    public void setIsBound(int isBound) {
        this.isBound = isBound;
    }

}
